//
//  FileStatusView.m
//  SolarSimple
//
//  Created by Marcelo Alves on 04/11/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "FileStatusView.h"


@implementation FileStatusView
@synthesize museekd;
@synthesize displayUploads;

-(id) init {
	
	return [self initDisplayingUploads:NO];
}

-(id) initDisplayingUploads:(BOOL) shouldDisplayUploads {
  if (![super initWithNibName:@"FileStatusView" bundle:nil]) return nil;
  
  [self setTitle:@"Downloads/Uploads"];
	
	displayUploads = shouldDisplayUploads;
	  
  return self;
}

-(void) awakeFromNib{
	
  NSNumber *shouldDisplayUploads = [NSNumber numberWithBool:displayUploads];  
  NSPredicate *predicate = [NSPredicate predicateWithFormat:@"isUpload == %@", shouldDisplayUploads];
  [treeController setFetchPredicate:predicate];	
}

-(BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item {
  return NO;
}


@end
